import { apiPost } from '../func/fetch'
import type { CheckInList, PassengerObj, TrafficRecordPage } from './type'
import type { PageResult } from '@/api/global.ts'

const _api = import.meta.env.VITE_FACEID_URL
// <-- 值机旅客库 -->
// 值机旅客库分页查询
export const checkInPageApi = (params: TrafficRecordPage): Promise<PageResult<CheckInList>> => {
  return apiPost(`${_api}/checkIn/page`, params)
}
// 旅客分布
export const passengerApi = (params: { flightId: string }): Promise<PassengerObj> => {
  return apiPost(`${_api}/checkIn/passengerList`, params)
}
